/**
 * Created by wangshaohua on 2018/1/13.
 */
moduleResource.factory("GeneralResource", function (CambioResource, $$CambioConfig) {
    return CambioResource($$CambioConfig.SZ_MANAGEMENT_SYSTEM_RESOURCE_URL + "/general", {}, {
        query: {
            url: $$CambioConfig.SZ_MANAGEMENT_SYSTEM_RESOURCE_URL + "/general/query",
            method: 'POST'
        },
        queryPage: {
            url: $$CambioConfig.SZ_MANAGEMENT_SYSTEM_RESOURCE_URL + "/general/query" + $$CambioConfig.QUERY_URI,
            method: 'POST'
        },
        //findOne
        findById: {
            url: $$CambioConfig.SZ_MANAGEMENT_SYSTEM_RESOURCE_URL + "/general/findById/:id",
            method: 'POST'
        },
        queryOnePage: {
            url: $$CambioConfig.SZ_MANAGEMENT_SYSTEM_RESOURCE_URL + "/general/findOne",
            method: 'POST'
        },
        save: {
            url: $$CambioConfig.RESOURCE_URL + "/general/save",
            method: 'POST'
        },
        update: {
            url: $$CambioConfig.RESOURCE_URL + "/general/update",
            method: 'PUT'
        },
        delte: {
            url: $$CambioConfig.RESOURCE_URL + "/general/delete/:id",
            method: 'POST'
        }
    });
});